<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>刻晴管理系统</title>
    <link rel="stylesheet" href="./css/reset.css">
    <link rel="stylesheet" href="./css/manage-bar.css">
    <link rel="stylesheet" href="./css/Font/css/all.min.css">
    <script src="http://code.jquery.com/jquery-latest.js"></script>
</head>
<body>
<!-- 左侧导航栏 -->
<div class="box">
    <div class="left-bar clearfix">
        <div class="left-title">
            <span><b>个人中心</b></span>
        </div>
        <hr>
        <ul>
            <li id="info" class="gongneng">
                <a href="#" class="yyy" id="yyy1">
                    <b class="fa">&#xf007; 查看信息</b>
                </a>
            </li>
            <li id="select" class="gongneng">
                <a href="#" class="yyy" id="yyy2">
                    <b class="fa">&#xf19d; 网上选课</b>
                </a>
            </li>
            <li id="myCourse" class="gongneng">
                <a href="#" class="yyy" id="yyy3">
                    <b class="fa">&#xf19d; 我的课程</b>
                </a>
            </li>
        </ul>
        <hr>
    </div>
    <div class="right">
        <iframe id="iframe" width="100%" height=100% frameborder=0 scrolling=auto src=""></iframe>
    </div>
</div>
</body>

<script>
    var mySno ;
    document.getElementById('iframe').src="./html/student/findStudentInfoBySno.html";
    document.getElementById('info').style.backgroundColor='#0D6EFD';
    document.getElementById('select').style.backgroundColor='#212529';
    document.getElementById('myCourse').style.backgroundColor='#212529';
    $.ajax({
        url:"/RuanJianKeShe/getSnoByLogin",
        type:"post",
        data:{
            "msg":"getSnoByLogin",
        },
        dataType:"json",
        success:function(info){
            name = info.name;
            alert("欢迎您"+name)
        },
        error:function(){
        }
    })

    document.getElementById('info').onclick=function(){
        document.getElementById('iframe').src="./html/student/findStudentInfoBySno.html";
        document.getElementById('info').style.backgroundColor='#0D6EFD';
        document.getElementById('select').style.backgroundColor='#212529';
        document.getElementById('myCourse').style.backgroundColor='#212529';
    }
    document.getElementById('select').onclick=function(){
        document.getElementById('iframe').src="./html/student/selectCourse.html";
        document.getElementById('info').style.backgroundColor='#212529';
        document.getElementById('select').style.backgroundColor='#0D6EFD';
        document.getElementById('myCourse').style.backgroundColor='#212529';
    }
    document.getElementById('myCourse').onclick=function(){
        document.getElementById('iframe').src="./html/student/findCourseBySno.html";
        document.getElementById('info').style.backgroundColor='#212529';
        document.getElementById('select').style.backgroundColor='#212529';
        document.getElementById('myCourse').style.backgroundColor='#0D6EFD';
    }
</script>
</html>

